import React, { Component } from 'react'

interface propsType {
    name: string
}

export default class App extends Component {
    render() {
        return (
            <div>
                <Child name='w' />
            </div>
        )
    }
}
//<参数,状态值>
class Child extends Component<propsType, any>{
    render() {
        return (
            <div>child+{this.props.name}</div>
        )
    }
}
